package mac.filter;

/**
 * Type of snapshot object should be figured out at the event recognizer.
 * It's because the event recognizer has a monitoring script 
 */
public class SnapshotObj implements java.io.Serializable
{
    public Object o;
    public String id;	
    private long timeStamp;

    public Object getVar() { return o; }
    public long getTimeStamp() {return timeStamp;}
    public String getVarId() { return id;}

    SnapshotObj(String id,Object o) {
	this.o = o;
	this.id = id;
	this.timeStamp = System.currentTimeMillis();

    }

    public String toString() { 
	String o_s = ( o != null) ? o.toString() : null;
	return ( id +" : " + o_s + " : " + timeStamp);
    }
}
